
    <!--Footer-part-->

    <div class="row-fluid">
        <div id="footer" class="span12"> <{$app_config.copyright_info}> </div>
    </div>

    <!--end-Footer-part-->

    <script type="text/javascript">
        // This function is called from the pop-up menus to transfer to
        // a different page. Ignore if the value returned is a null string:
        function goPage (newURL) {

            // if url is empty, skip the menu dividers and reset the menu selection to default
            if (newURL != "") {

                // if url is "-", it is this page -- reset the menu:
                if (newURL == "-" ) {
                    resetMenu();
                }
                // else, send page to designated URL
                else {
                    document.location.href = newURL;
                }
            }
        }

        // resets the menu selection upon entry to this page:
        function resetMenu() {
            document.gomenu.selector.selectedIndex = 2;
        }

        function getCourse(){
            var cato = $("#parent_cato").val();
            $("#parent_course").empty();
            $.ajax({
                url:"<{spUrl c=catocourse a=getClasses}>",
                type:"post",
                data:{
                    cato_id : cato
                },
                dataType:"json",
                success:function($data){
                    if($data.result == 1){
                        $("#parent_course").empty();
                        var innerHtml ='';
                        for(var i=0; i<$data.data.length; i++){
                            innerHtml += '<option value="'+$data.data[i].id+'">'+$data.data[i].name+'</option>';
                        }
                        console.log(innerHtml);
                        $("#parent_course").append(innerHtml);
                    }
                }
            })
        }
    </script>
</body>
</html>